package com.mf.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

/**
 * @Author: lmf
 * @Create: 2024/9/1 21:10
 * Description:  教育经历
 */
@Data
public class EducationInfoVo {
    @Schema(description = "id")
    private Integer id;

    /**
     * 开始日期
     */
    @Schema(description = "开始日期", example = "2024-09-01")
    @NotNull(message = "开始日期不能为空")
    private LocalDate start;

    /**
     * 结束日期
     */
    @Schema(description = "结束日期", example = "2024-09-01")
    @NotNull(message = "结束日期不能为空")
    private LocalDate end;

    /**
     * 学校名称
     */
    @Schema(description = "学校名称", example = "腾讯")
    @NotBlank(message = "学校名称不能为空")
    private String schoolName;

    /**
     * 主修专业
     */
    @Schema(description = "主修专业", example = "开发")
    @NotBlank(message = "主修专业不能为空")
    private String major;

    /**
     * 1:毕业;0:未毕业
     */
    @Schema(description = "1:毕业;0:未毕业")
    @NotNull(message = "毕业状态不能为空")
    private Integer flagGraduate;

    /**
     * 取得学历
     */
    @Schema(description = "取得学历", example = "本科")
    @NotBlank(message = "取得学历不能为空")
    private String educationName;

    /**
     * 花名册id
     */
    @Schema(description = "花名册id")
    @NotNull(message = "花名册id不能为空")
    private Integer rosterId;

    /**
     * 备注
     */
    @Schema(description = "备注", example = "备注")
    private String remark;
}
